/**https://blog.csdn.net/leixiaohua1020/article/details/50534150
 * 源码来源于雷霄骅博士的开源博客
 */

#ifndef __PIXEL_PROCESSING_H__
#define __PIXEL_PROCESSING_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

/******************************** YUV demo ***************************************/
int simplest_yuv420_split(char *url, int w, int h,int num);
int simplest_yuv444_split(char *url, int w, int h,int num);
int simplest_yuv420_gray(char *url, int w, int h,int num);
int simplest_yuv420_halfy(char *url, int w, int h,int num);
int simplest_yuv420_border(char *url, int w, int h,int border,int num);
int simplest_yuv420_graybar(int width, int height,int ymin,int ymax,int barnum,char *url_out);
int simplest_yuv420_psnr(char *url1,char *url2,int w,int h,int num);

/******************************** RGB demo ***************************************/
int simplest_rgb24_split(char *url, int w, int h,int num);
int simplest_rgb24_to_bmp(const char *rgb24path,int width,int height,const char *bmppath);
int simplest_rgb24_to_yuv420(char *url_in, int w, int h,int num,char *url_out);
int simplest_rgb24_colorbar(int width, int height,char *url_out);

/******************************** H264 demo ***************************************/
int simplest_h264_parser(char *url);

/******************************** flv demo ***************************************/
int simplest_flv_parser(char *url);

/******************************** UDP_RTP demo ***************************************/
int simplest_udp_parser(int port);

#endif /*__PIXEL_PROCESSING_H__*/